package com.swallow.auth.api.emp;

import com.swallow.auth.api.emp.dto.CreateEmpDTO;
import com.swallow.auth.common.result.Result;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: 18310740596@163.com
 * @date: 2024-05-20 21:44:42
 * @version: v1.0
 * @describe: class responsibility
 */
@FeignClient(url = "http://localhost:9000")
@RequestMapping("employee")
public interface IEmployeeFacade {

    @PostMapping("/create")
    Result<Object> create(@RequestBody @Valid CreateEmpDTO createEmp);



}
